
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AppComponent } from './app.component';

const routes: Routes = [
  {
    path : '' , component : AppComponent,
    children : [
      {
        path : 'block' , loadChildren : () => import('./block/block.module').then(m => m.BlockModule)
      },
      {
        path: 'default' , loadChildren: () => import('./default/default.module').then(m => m.DefaultModule)
      },
      {
        path : '' , redirectTo : 'block' , pathMatch : 'full'
      }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
